   <h3 class="box-title">Users Edit</h3>

    <!--error -->
    <?php
    	if(isset($errors)){
    		echo $this->element('errors', array('errors' => $errors)); 
		}
    ?>
    <!-- form start -->
    <form class="form-horizontal form-bordered" action="/users/edit/<?php echo $id;?>" method="post">
    	<input type="hidden" name="id" value="<?php echo $data['id']; ?>" />
             
            <!-- Input -->
            <div class="form-group">
				<label class="col-sm-2 control-label">Tên User</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" name="data[username]" value="<?php echo $data['username']?>"/>
				</div>
			</div>
		            
            <!-- Input -->
            <div class="form-group">
				<label class="col-sm-2 control-label">Tên password</label>
				<div class="col-sm-5">
					<input type="password" class="form-control" name="data[password]" value="<?php echo $data['password']?>"/>
				</div>
			</div>       
            
            <!-- Input -->      
            <div class="form-group">
				<label class="col-sm-2 control-label">Tên email</label>
				<div class="col-sm-5">
					<input type="text" class="form-control" name="data[email]" value="<?php echo $data['email']?>"/>
				</div>
			</div> 
            
            <div class="form-group">
				<label class="col-sm-2 control-label">Role</label>
				<div class="col-sm-5">
					<select class="form-control input-sm mb15" name="data[role]">
						<option value="user" <?php  echo $data['role'] == 'user'? "select":""; ?>>user</option>
						<option value="admin" <?php  echo $data['role'] == 'admin'? "select":""; ?>>admin</option>
						
					</select>
				</div>
			</div>
            <div class="form-group">
	            <label class="col-sm-2 control-label">Trạng thái</label>
	            <div class="col-sm-5">
	            	<div class="rdio rdio-success">
	            		<input id="radioSuccess" type="radio" value="0" name="data[active]" <?php echo $data['active'] == 0? 'checked="checked"':'' ?>>
						<label for="radioSuccess">Không hoạt động</label>
            		</div>
            		<div class="rdio rdio-success">
	            		<input id="radioSuccess1" type="radio" value="1" name="data[active]" <?php echo $data['active'] == 1? 'checked="checked"':'' ?>>
						<label for="radioSuccess1">Hoạt động</label>
            		</div>
                </div>
	        </div>
        <div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-10">
			<button class="btn btn-default" type="reset">Reset</button>
			<button class="btn btn-success">Submit</button>
		</div>
	</div>
    </form>
<!-- END PAGE CONTENT-->

